libxl: disk specification interface change
authorKamala Narasimhan <kamala.narasimhan@citrix.com>
Tue, 15 Feb 2011 19:59:37 +0000 (19:59 +0000)
committerKamala Narasimhan <kamala.narasimhan@citrix.com>
Tue, 15 Feb 2011 19:59:37 +0000 (19:59 +0000)
commit546a7640451fc359212ba23bc2d6a9497e1ed6d9
tree74ca2514207c377da35f3068557784f4b99526c1
parenta7fd96dfbd3cfe5509420c28ec47e8229a773b76
libxl: disk specification interface change

Currently we pile all the backend and format information pertaining to
disk option in a single enum.  This check-in separates the two and
uses two enums, one for disk format and another for disk backend.
This helps clearly differentiate between disk format and backend
within the implementation and also helps cleanup the code in this area
in preparation for the impending parser revamping to be done post 4.1.
Along with separating format and backend, this check-in also removes
unwanted types and renames variables in the disk interface and fixes
the code affected by the interface changes.

In specific, here are the disk interface changes made - In
libxl_device_disk structure physpath was renamed to pdev_path,
virtpath was renamed to vdev, phystype was removed and replaced with
backend and format enums.  Also previously a single enum
libxl_disk_phystype held the values for qcow, qcow2, vhd, aio, file,
phy, empty and that got refactored into two enums, libxl_disk_format
to hold unknown, qcow, qcow2, vhd, raw, empty and libxl_disk_backend
to hold unknown, phy, tap and qdisk.

Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
13 files changed:
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/libxl.idl
tools/libxl/libxl_blktap2.c
tools/libxl/libxl_device.c
tools/libxl/libxl_dm.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_noblktap2.c
tools/libxl/libxl_utils.c
tools/libxl/libxl_utils.h
tools/libxl/xl_cmdimpl.c
tools/ocaml/libs/xl/xl_stubs.c
tools/python/xen/lowlevel/xl/xl.c